package com.REPDPMSystem.Service;

import com.REPDPMSystem.Entity.Employee;
import com.REPDPMSystem.Entity.EmployeePosition;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
//不存在删除，只能改员工状态为离职
public interface EmployeeService extends IService<Employee> {
    List<Employee> getEmployeeInfo(String userName, String passWord);

    List<Employee> getEmployeeInfo();

    boolean changeEmployeeInfo(Employee employee);

    List<Employee> getEmployeeInfoByName(String name);

    List<Employee> getDepartmentEmployee(int employee_department);
    EmployeePosition getEmployeePositionById(String staffId);

    int getEmployeeDepartment(String employeeId);

    boolean createEmployee(Employee employee);
    boolean changePassword(String userName,String passWord,String newPassword);

    String getEmployeeNameById(String employeeId);
}
